package com.dehui.traders.ui.viewmodle;

import android.content.Context;
import android.databinding.ObservableField;

import com.dehui.traders.enums.MainTab;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
 * Created by hqq on 18.3.29.
 */

public class MainViewModel extends BaseViewModel{

    public ObservableField<String> title = new ObservableField<>("首页");

    public BindingCommand tabChangeCommand = new BindingCommand(s->{
        title.set(String.valueOf(s));
    });

    public ObservableField<MainTab[]> mainTabs = new ObservableField<>(MainTab.values());


    public MainViewModel(Context context) {
        super(context);
    }


}
